import axios from '../config/axiosConfig';
/**
 * 获取路由列表
 */
export const getRoutesListApi = (data:any = { }) : Promise<any> => {
    return axios.get('/route/routeList', {
        params: data
    });
}
/**
 * 添加路由
 */
export const addRoutesApi = (data:any = { }) : Promise<any> => {
    return axios.post('/route/addRoute', data);
}
/**
 * 编辑路由
 */
export const editRoutesApi = (data:any = { }) : Promise<any> => {
    return axios.put('/route/editRoute', data);
}
/**
 * 删除路由
 */
export const deleteRoutesApi = (id:any) : Promise<any> => {
    return axios.delete(`/route/deleteRoute/${id}`);
}